-- GENERATED SPELL FOR [Camp Oneqwah Brave] --


function spell0_27126(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27126', 573, 1)
end

function spell1_27126(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_27126', 656, 1)
end

function Sorts_27126(pUnit, Event)
local choix_sorts_27126 = math.random(0, 1)
if choix_sorts_27126 == 0 then
pUnit:RegisterEvent('spell0_27126', 1, 1)
end
if choix_sorts_27126 == 1 then
pUnit:RegisterEvent('spell1_27126', 1, 1)
end
end

function mob27126_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27126', math.random(1500, 3000), 1)
end

function mob27126_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27126_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27126_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27126, 1, 'mob27126_Action')
RegisterUnitEvent(27126, 2, 'mob27126_Leave')
RegisterUnitEvent(27126, 3, 'mob27126_Kill')
RegisterUnitEvent(27126, 4, 'mob27126_Die')
